<? include ("../init.php") ?>
<?
  $aid = $_POST['aid'];
  $collection = $_POST['collection'];
  $name = $_POST['name'];
  $slogan = $_POST['slogan'];
  $detail = $_POST['detail'];
  $active = $_POST['active'];
  
  $sql = "UPDATE hs_collection SET pc_group='$collection',pc_name='$name',pc_active='$active',pc_slogan='$slogan',pc_detail='$detail' WHERE pc_id=$aid";
  $db->execute($sql);
  
  header("Location:collection.php");
?>